//
// Created by hi on 25-5-10.
//
#include <stdio.h>
void main(){
  //创建枚举 枚举变量默认会自增
  enum DAY{MON=1,TUE,WED,THU,Fri,SAT,SUN};
  //创建枚举变量
  enum DAY day;

  printf("创建的枚举：MON=%d TUE=%d WED=%d THE=%d Fri=%d SAT=%d SUN=%d\n",MON,TUE,WED,THU,Fri,SAT,SUN);
  printf("创建的默认枚举变量%d\n",day);
  //给枚举变量赋值
  day = SUN;
  day = 1;
  printf("赋值后的枚举%d\n",day);
  day = 11;
  printf("%d",day);
}